import request from '@/utils/request'


const api_name = `/sysmanage/tenant`

export default{
    //分页加条件查询
    getPageList(query){
        return request({
            url:`${api_name}/listPage`,
            method:'post',
            data:query
        })
    },
    //通过id查询租户信息
    getTenantById(id){
        return request({
            url:`${api_name}/${id}`,
            method:'get'
        })
    },
    //保存租户信息
    saveTenant(tenant){
        return request({
            url:`${api_name}`,
            method:'put',
            data:tenant
        })
    },
    //删除租户信息
    deleteById(id){
        return request({
            url:`${api_name}/${id}`,
            method:'delete'
        })
    },

    //租户入住
    settlement(tenantRegister){
        return request({
            url:`${api_name}/settlement`,
            method:'post',
            data:tenantRegister
        })
    },
    //删除logo
    delete(path){
      return request({
        url:`${api_name}/deleteByCos?path=${path}`,
        method:'delete'
      })
    }



}
